package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 传感器数据对象 snmp_sensorinfohistory
 *
 * @author ruoyi
 * @date 2025-03-13
 */
public class SnmpSensorinfohistory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 传感器ID（主键） */
    @Excel(name = "传感器ID", readConverterExp = "主=键")
    private String sensorId;

    /** 关联的设备ID（外键） */
    @Excel(name = "关联的设备ID", readConverterExp = "外=键")
    private String deviceId;

    /** 传感器值 */
    @Excel(name = "传感器值")
    private String sensorValue;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setSensorId(String sensorId)
    {
        this.sensorId = sensorId;
    }

    public String getSensorId()
    {
        return sensorId;
    }
    public void setDeviceId(String deviceId)
    {
        this.deviceId = deviceId;
    }

    private String sensorName;
    public String getSensorName()
    {
        return sensorName;
    }
    public void setSensorName(String sensorName)
    {
        this.sensorName = sensorName;
    }


    public String getDeviceId()
    {
        return deviceId;
    }
    public void setSensorValue(String sensorValue)
    {
        this.sensorValue = sensorValue;
    }

    public String getSensorValue()
    {
        return sensorValue;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sensorId", getSensorId())
            .append("sensorName", getSensorName())
            .append("deviceId", getDeviceId())
            .append("sensorValue", getSensorValue())
            .append("createTime", getCreateTime())
            .toString();
    }
}
